import request from '@/utils/request'

const API_NAME = '/api/hosp/hospital'
export default {
  getHospPageList(page, limit, searchObj) {
    return request({
      url: `${API_NAME}/list/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  getHospByHosName(hosname) {
    return request({
      url: `${API_NAME}/getHospListByHosName/${hosname}`,
      method: 'get'
    })
  },
  // 根据医院编号查询医院信息
  showHospDetailByHoscode(hoscode){
    return request({
      url: `${API_NAME}/showHospDetailByHoscode/${hoscode}`,
      method: 'get'
    })
  },
  // 根据医院编号查询科室信息
  showHospDepByHoscode(hoscode){
    return request({
      url: `${API_NAME}/depDetailByHoscode/${hoscode}`,
      method: 'get'
    })
  }

}
